package com.example.sxt_practise.IO;

import java.io.Serializable;

/**
 * @author gaofeng
 * @date 2022年05月11日 23:24
 */
public class User implements Serializable {
    /**
     * 该数据不需要序列化
     */
    private transient Integer age ;
    private String name ;

    public User() {
    }

    public User(Integer age, String name) {
        this.age = age;
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "User{" +
                "age=" + age +
                ", name='" + name + '\'' +
                '}';
    }
}
